<?php
/**
 * Author: Dcr
 * Date: 2019/7/16
 * Time: 14:47
 */
define('IN_DCR',true);
//网站根目录
define('WEB_PATH',__DIR__);
//应用目录
define('APP_PATH',WEB_PATH.'/app');
//核心目录
define('LIB_PATH',WEB_PATH.'/dcr');
//调试模式
define('APP_DEBUG',1);
//加载框架文件
require LIB_PATH.'/Base.php';
//加载配置文件
require WEB_PATH.'/config/config.php';
//加载全局函数
require LIB_PATH.'/functions/functions.php';

try{
    \dcr\Base::getInstance($config)->run();
}catch(Exception $e){
    exit( '<strong>错误信息</strong>：'.$e->getMessage());
}

